package com.neusoft.my12306.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 葛彬
 * @since 2023-07-22
 */
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    /**
     * 车次号
     */
    private String trainno;

    /**
     * 出发站
     */
    private String fromnm;

    /**
     * 目的站
     */
    private String tonm;

    /**
     * 出发时间
     */
    private String fromtime;

    /**
     * 到达时间
     */
    private String totime;

    /**
     * 出发日期
     */
    private String date;

    /**
     * 支付人姓名
     */
    private String paynm;

    /**
     * 乘车人姓名
     */
    private String passnm;

    /**
     * 票价
     */
    private Double money;

    /**
     * 车厢号
     */
    private String carriage;

    /**
     * 行数
     */
    private String rows;

    /**
     * 座位号
     */
    private String seat;

    /**
     * 支付时间
     */
    private String paytime;

    /**
     * 0：未支付 1：已支付
     */
    private Integer state;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }
    public String getTrainno() {
        return trainno;
    }

    public void setTrainno(String trainno) {
        this.trainno = trainno;
    }
    public String getFromnm() {
        return fromnm;
    }

    public void setFromnm(String fromnm) {
        this.fromnm = fromnm;
    }
    public String getTonm() {
        return tonm;
    }

    public void setTonm(String tonm) {
        this.tonm = tonm;
    }
    public String getFromtime() {
        return fromtime;
    }

    public void setFromtime(String fromtime) {
        this.fromtime = fromtime;
    }
    public String getTotime() {
        return totime;
    }

    public void setTotime(String totime) {
        this.totime = totime;
    }
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
    public String getPaynm() {
        return paynm;
    }

    public void setPaynm(String paynm) {
        this.paynm = paynm;
    }
    public String getPassnm() {
        return passnm;
    }

    public void setPassnm(String passnm) {
        this.passnm = passnm;
    }
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }
    public String getCarriage() {
        return carriage;
    }

    public void setCarriage(String carriage) {
        this.carriage = carriage;
    }
    public String getRows() {
        return rows;
    }

    public void setRows(String rows) {
        this.rows = rows;
    }
    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }
    public String getPaytime() {
        return paytime;
    }

    public void setPaytime(String paytime) {
        this.paytime = paytime;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Orders{" +
            "oid=" + oid +
            ", trainno=" + trainno +
            ", fromnm=" + fromnm +
            ", tonm=" + tonm +
            ", fromtime=" + fromtime +
            ", totime=" + totime +
            ", date=" + date +
            ", paynm=" + paynm +
            ", passnm=" + passnm +
            ", money=" + money +
            ", carriage=" + carriage +
            ", rows=" + rows +
            ", seat=" + seat +
            ", paytime=" + paytime +
            ", state=" + state +
        "}";
    }
}
